'use strict'

let Koa = require('koa');

let app = new Koa();

let {sequelize,defineModel,DataTypes} = require('./db');

let t = require('./models/Product');

let obj = {
    Proudct:t
};

let n = 'Proudct';

obj[n] = require('./models/Product');

console.log(obj.Proudct===sequelize.models.Proudct);
console.log(t===sequelize.models.Proudct);

(async()=>{
    await sequelize.sync({force:true});
})();

app.listen(5000);

console.log("http://localhost:5000");

